package com.example.subhispizza;


import android.support.v7.app.ActionBarActivity;
import android.telephony.SmsManager;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;


public class MainActivity extends ActionBarActivity {
	Button btnSend;
	EditText etPhoneNo;
	Button btnOrder;
	
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        
      //Add Values to fields 
       // etPhoneNo = (EditText) findViewById(R.id.phno);
	//	btnSend = (Button) findViewById(R.id.send);
		btnOrder = (Button) findViewById(R.id.button1);
		
		//Method To go to Order Page
		btnOrder.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v){
				ToOrder();
			}
		});
    }

    private void ToOrder()
	{
		startActivity(new Intent(this, Order.class));
	}
    
   }
